package br.com.sebrae.pr.sgp.util;

import java.io.Serializable;
import java.util.List;

import br.com.sebrae.pr.sgp.entities.base.BasePersistente;

public interface IOperacoes<T extends BasePersistente> extends Serializable {

    public T pesquisarPorId(final long id);

    public List<T> pesquisarTodos();

    public void salvarOuAtualizar(final T dto, final boolean commit);

    public void deletar(final T dto, final boolean commit);

    public void salvarOuAtualizar(final T dto);

    public void deletar(final T dto);

}
